package com.szqhyxj.youxiangju.biz.equipmentActivation.headIdCard;

import android.content.Context;

import com.szqhyxj.youxiangju.BasePresenter;
import com.szqhyxj.youxiangju.PromptView;

import java.io.File;
import java.io.IOException;

/**
 * Created by leung on 2018/11/1.
 */

public interface HeadIdCardContract {
    interface View extends PromptView{
        void showHeadIdCard(File file);

        void navToTakePhotoHeadIdCard(File file);

        void navToGalleryForHeadIdCard();

        void showIDCardHeadUploadSuccess(String s);

        void uploadSuccessHead();

        void showIDCardHeadUploadFail(String s);

        void CommitSuccess();

        void CommitFail();

        void showToast(String s);
    }

    interface Presenter extends BasePresenter {
        void TakePhotoHeadIdCard(Context context) throws IOException;

        void selectFromGalleryForHeadIcCard();

        void idcardHeadFromTakePhoto(Context context) throws IOException;

        void idcardHeadFromGallery(File file);

        void commitHand();
    }
}
